function loadDetailgrid(para,tg)
{
    if (tg=="BIO"){
    $("#searchdetailgrid").html('<div style="height: 100%; width: 100%; background: url(/images/loading/loading9.gif) 45% 50% no-repeat">  </div>');
                    $.post("http://"+location.hostname+"/map/Searchdetailgridbio", {search: para+"flag_search_d_pg_t"}, function(data) {

                                $("#searchdetailgrid").html(data);
                });
    }
    if (tg=="NONBIO"){
    $("#searchdetailgrid").html('<div style="height: 100%; width: 100%; background: url(/images/loading/loading9.gif) 45% 50% no-repeat">  </div>');
                    $.post("http://"+location.hostname+"/map/Searchdetailgridnonbio", {search: para+"flag_search_d_pg_t"}, function(data) {

                                $("#searchdetailgrid").html(data);
                });
    }
    if (tg=="OVERLAY"){
    $("#searchdetailgrid").html('<div style="height: 100%; width: 100%; background: url(/images/loading/loading9.gif) 45% 50% no-repeat">  </div>');
                    $.post("http://"+location.hostname+"/map/Searchdetailgridoverlay", {search: para+"flag_search_d_pg_t"}, function(data) {

                                $("#searchdetailgrid").html(data);
                });
    }

}
function loadgridpage(a,tg)
{


if (tg=="BIO"){
    
    $("#gridtbody").html('<tr><td colspan="7" align="center" style = "background: url(/images/loading/loading9.gif) 45% 50% no-repeat"></td></tr>');
    
                $.post("http://"+location.hostname+"/map/Searchdetailgridbio", {search: getBioselection()+"flag_search_d_pg_t"+a}, function(data) {

                                        $("#searchdetailgrid").html(data);

                });}
if (tg=="NONBIO"){

    $("#gridtbody").html('<tr><td colspan="7" align="center" style = "background: url(/images/loading/loading9.gif) 45% 50% no-repeat"></td></tr>');

                $.post("http://"+location.hostname+"/map/Searchdetailgridnonbio", {search: getNonbioselection()+"flag_search_d_pg_t"+a}, function(data) {

                                        $("#searchdetailgrid").html(data);

                });}
if (tg=="OVERLAY"){

    $("#gridtbody").html('<tr><td colspan="7" align="center" style = "background: url(/images/loading/loading9.gif) 45% 50% no-repeat"></td></tr>');

                $.post("http://"+location.hostname+"/map/Searchdetailgridoverlay", {search: getOverlayselection()+"flag_search_d_pg_t"+a}, function(data) {

                                        $("#searchdetailgrid").html(data);

                });}

}

function showattributerow(hdrow,odid,tg)
{

    $("#"+hdrow).toggle();

    if($("#"+hdrow).is(":visible")==false){
            $("#"+hdrow+"_a").removeClass("expandicon");
            $("#"+hdrow+"_a").addClass("expand");
    }
    else
        {
            $("#"+hdrow+"_a").removeClass("expand");
            $("#"+hdrow+"_a").addClass("expandicon");

if (tg=="BIO"){
            $.post("http://"+location.hostname+"/map/Searchdetailgridloadattribute", {search: odid}, function(data) {
            
             $("#td"+hdrow).html(data);

                });}
if (tg=="NONBIO"){
            $.post("http://"+location.hostname+"/map/Searchdetailgridloadattribute", {search: odid}, function(data) {

             $("#td"+hdrow).html(data);

                });}
        
        }

    
        
}


